package cn.com.joycode.admin.entrance.controller.api;

import cn.com.joycode.nimble.admin.security.configuration.NimbleAdminWebSecurityConfigurerAdapter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(NimbleAdminWebSecurityConfigurerAdapter.LOGIN_API_URL)
public class ApiAuthenticationController {

    /**
     * 登录接口
     */
    @PostMapping("/login1")
    public String login(@RequestBody(required = false) String request) {
        log.info("请求:{}", request);
        return "OK";
    }
}